<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023-10-31
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>分数更新</title>
</head>
<body>
    <form action="/score/doUpdate" method="post">
        <input type="hidden" name="id" value="${score.id}">
        学生:
<%--        <input type="text" name="studentId" value="${score.studentId}">--%>
            <select name="studentId">
                <c:forEach var="student" items="${students}">
                    <option value="${student.id}" ${student.id==score.studentId?'selected':''}>${student.name}</option>
                </c:forEach>
            </select>
        <br>
        课程:<input type="text" name="course" value="${score.course}"><br>
        分数:<input type="text" name="score" value="${score.score}"><br>
        <input type="submit" value="更新"><br>
    </form>
</body>
</html>
